package com.my.code.consistenthash;

/**
 * <b>服务器节点实体</b><p>
 *
 * @author zzl
 * @date 2020/10/26
 */
public abstract class Node {

    private int index;
    private String ip;
    private int port;

    public int getIndex() {
        return index;
    }

    public void setIndex(int index) {
        this.index = index;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public int getPort() {
        return port;
    }

    public void setPort(int port) {
        this.port = port;
    }
}
